package com.example.badmintonUser.admin;

import com.example.badmintonCommon.entity.Gym;
import com.example.badmintonCommon.entity.Notice;
import com.example.badmintonCommon.entity.Order;
import com.example.badmintonCommon.entity.User;
import com.example.badmintonCommon.pojo.Result;

import java.util.List;

public interface AdminServer {
    Result<List<User>> GetUsersList();

    Result<String> GetOdersList();

    //管理员通过手机号登录
    Result<String> AdminLogin(String tel,String psw);

    //查询用户密码
    Result<String> GetUserPsw(String tel);

   //添加体育馆信息
    Result<String> AddGym(Integer gymprise);

    //生成下一个场地ID
    Integer generateNextGymId();

    //删除场地信息
    Result<String> DeleteGymById(Integer id);

    //增加公告
    void AddNotice(Notice notice);

    //更新公告
    void UpdateNotice(Notice notice);

    //找所有公告
    List<Notice> FindAllNotices();

    //通过id找公告
    Notice FindNoticeById(Integer id);

    Result<List<Order>> getOrders();

    Result<List<Gym>> getGyms();

    Result<String> changePlacePrice(int place,int price);

    Result<String> lockOrUnlockUser(String tel);

    Result<String> deleteNotice(int id);
}
